package com.hollycrm.hollysqm.analyzer.solr.action.impl;

import com.hollycrm.hollysqm.analyzer.solr.action.Act;
import com.hollycrm.hollysqm.analyzer.util.ConfigUtil;
import com.hollycrm.hollysqm.analyzer.util.Constant;

/**
 * Created by zhaihw on 2016/5/7.
 * 刷新配置文件
 */
public class FlushConfigAct implements Act {
    @Override
    public String execute() {
        String jsonTemp = ConfigUtil.getProp(Constant.jsonTemp);
        ConfigUtil.init();
        return jsonTemp.replace("#1", "true").replace("#2", "success");
    }
}
